#pragma once
#include "ChatMessage.h"

class CChatDlg : public CDialog
{
public:
	CChatDlg(CWnd* pParent = NULL);

	void AddMessage(const char *pChatMessage);

	~CChatDlg(void);

	enum { IDD = IDD_CHATDLG };

public:
	CString m_strUser;
	CString m_strSendID;
	CString m_strRecvID;
	SOCKET m_sock;

	CRichEditCtrl	m_richControl;
protected:
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnSend();
	afx_msg void OnClose();
	virtual void DoDataExchange(CDataExchange* pDX);  
	DECLARE_MESSAGE_MAP()
};
